package com.gadgets.framework.common.exception;

import com.gadgets.framework.common.constant.ExceptionEnum;

import java.util.Locale;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-16
 *
 */
public class GadgetsServiceException extends GadgetsException{

    public GadgetsServiceException(String message) {
        super(message, ExceptionEnum.BUSI_ERROR);
    }

    public GadgetsServiceException(Throwable cause) {
        super(cause, ExceptionEnum.BUSI_ERROR);
    }

    public GadgetsServiceException(String errorCode, Object... args) {
        super(ExceptionEnum.BUSI_ERROR, errorCode, args);
    }

    public GadgetsServiceException(Locale locale, String errorCode, Object... args) {
        super(locale, ExceptionEnum.BUSI_ERROR, errorCode, args);
    }

    public GadgetsServiceException(ExceptionEnum exceptionEnum, Locale locale, String errorCode, Object... args) {
        super(locale, exceptionEnum, errorCode, args);
    }
    
}
